package com.qingzhuge.mq;

import javax.jms.Queue;
import javax.jms.Topic;

/**
 * @author : zero.xiao
 * @description : 消息提供者接口
 * @date :2019-06-19 10:44
 * @modified :
 */
public interface IProducer {
    <M> void sendMessage(String topic,M msg);

    <M> void sendMessage(Topic topic, M msg);

    <M> void sendMessage(Queue queue, M msg);
}
